// 导出属于员工的路由规则
import Layout from '@/layout'
//  {  path: '', component: '' }
// 每个子模块 其实 都是外层是layout  组件位于layout的二级路由里面
export default {
  path: '/stock', // 路径
  name: 'stock', // 给路由规则加一个name
  meta: { title: '入库管理', icon: 'el-icon-collection' },
  component: Layout, // 组件
  // 配置三级路的路由表
  children: [
    {
      path: 'godown-entry', // 这里当二级路由的path什么都不写的时候 表示该路由为当前二级路由的默认路由
      component: () => import('@/views/stock/godown-entry.vue'),
      // 路由元信息  其实就是存储数据的对象 我们可以在这里放置一些信息
      meta: { title: '入库单', icon: 'el-icon-table-lamp' }
    },
    {
      path: 'godown-entry/details',
      component: () => import('@/views/stock/details'),
      hidden: true
    },
    {
      path: 'godown-entry/list-details/:id',
      component: () => import('@/views/stock/list-details'),
      hidden: true
    },
    {
      path: 'receiving-task',
      component: () => import('@/views/stock/receiving-task.vue'),
      meta: { title: '收货任务', icon: 'el-icon-document-checked' }
    },
    {
      path: 'receiving-task/sure/:id',
      component: () => import('@/views/stock/sure'),
      hidden: true
    },
    {
      path: 'putaway-task',
      component: () => import('@/views/stock/putaway-task.vue'),
      meta: { title: '上架任务', icon: 'el-icon-document-checked' }
    }

  ]
}
